package com.shop.order.server.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: dpengpeng
 * Date: 2018/5/19
 * Time: 21:02
 * Description:
 */
@RestController
@RefreshScope
public class EnvController {

    @Value("${env}")
    private String env;

    @RequestMapping("env")
    public String env() {
        return env;
    }

}
